const Sequelize = require('sequelize');
const {INTEGER, STRING, DOUBLE, BOOLEAN} = Sequelize;
module.exports = ['tableName', {
    player_id: {
        type: STRING,
        allowNull: false,
        comment: '玩家真实id'
    },
   room_id: {
        type: STRING,
        allowNull: false,
        comment: '房间ID'
    },
    player_name: {
        type: STRING,
        allowNull: false,
        comment: '玩家昵称'
    },
    buystacks: {
        type: DOUBLE,
        allowNull: false,
        comment: '买入'
    },
    bonus: {
        type: DOUBLE,
        allowNull: false,
        comment: '当前盈亏'
    },
    is_deal: {
        type: BOOLEAN,
        allowNull: false,
        comment: '是否亏钱'
    },
    bind_table: {
        type: BOOLEAN,
        allowNull: false,
        comment: '是否入桌'
    },

    seq: {
        type: INTEGER,
        allowNull: false,
        comment: '顺序'
    },
    player_avatar: {
        type: STRING,
        allowNull: false,
        comment: '头像'
    },


}];
